ContextType

A context action key, that doubles as a "keybind", presenting itself as relevant for context handling if key/mouse input is relevant to it.

Author

fzzyhmstrs

Since

0.6.0

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun relevant(inputCode: Int, ctrl: Boolean, shift: Boolean, alt: Boolean): Boolean

Determines whether this type is relevant to the user inputs provided. In general, only the key state you care about should be checked. For example, if your keybind is "X", check that the inputCode is correct but ignore ctrl/shift/alt entirely, unless it is specifically important that they not be pressed.

Link copied to clipboard
open override fun toString(): String